<?php

class Core_Form_Admin_I18n_Language extends Form
{
	function init()
	{
		$this -> addChild('text', 'id', array(
			'label' => 'Language ID',
			'desc' => 'For developer only, please do not change this value if you are not sure.'
		));

		$this -> addChild('text', 'title', array(
			'required' => true,
			'label' => 'Name',
			'desc' => 'English name of this language',
			'rules' => array('required')
		));

		$this -> addChild('yesno', 'is_active', array(
			'label' => 'Active',
			'desc' => 'Visitors can choose this language when it is active.',
			'required' => true,
			'rules' => array('required'),
			'value' => 1,
		));

		$this -> addChild('yesno', 'is_locked', array(
			'label' => 'Locked',
			'desc' => '',
			'required' => true,
			'rules' => array('required'),
			'value' => 1,
			'desc' => 'Visitors can choose this language when it is active.',
		));

		$this -> addChild('group', '_buttons');
		$this -> _buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
